package com.shishuo.cms.entity;

import java.util.Date;
import java.util.Set;

public class RoleEntity {

	private int id;
	private String roleName;
	private Date createTime=new Date();
	private Date lastUpdate=new Date();
	/**
	 * 0:禁用,1:启用
	 */
	private int status;
	/**
	 * 角色和菜单资源的多对多关系映射
	 */	
	private Set<MenuEntity> menus;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getLastUpdate() {
		return lastUpdate;
	}
	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public Set<MenuEntity> getMenus() {
		return menus;
	}
	public void setMenus(Set<MenuEntity> menus) {
		this.menus = menus;
	}
	
	
	
}
